package com.eedi.framework.notify.controller.sys.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Schema(description = "系统界面 - 通知公告创建/修改 Request VO")
@Data
public class SysNoticeUpReq {

    @Schema(description = "公告ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "小博主")
    private String sysNoticeId;

    @Schema(description = "公告标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "小博主")
    @Size(max = 50, message = "公告标题不能超过50个字符")
    private String sysNoticeTitle;

    @Schema(description = "副标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "半生编码")
    private String sysNoticeSubhead;

    /**
     * 公告跳转连接
     */
    @Schema(description = "公告跳转连接", requiredMode = Schema.RequiredMode.REQUIRED, example = "http://www.baid.com")
    private String sysNoticeUrl;

    /**
     * 排序
     */
    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer sysNoticeSort;

    @Schema(description = "状态，参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer sysNoticeStatus;

}
